<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <h2>成功的javascript开发者的7个习惯</h2>
    <dl>
        <dd>this</dd>

    </dl>
  <script type="text/javascript">

      function NewClass() {
        this.name = 'frank',
        lastName = 'js';//指向了window
        this.toUC=String.toUpperCase;
        this.toString = function () {
          return this.toUC(this.name);
        }
      }
      var nc = new NewClass();
      alert(nc.name);
        alert(nc);
  </script>

</body>
</html>
